﻿<%@ Page language="c#" Codebehind="MsgSend.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.SM.MsgSend" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="zh-cn" />
<meta name="author" content="Herry" />
<meta name="Copyright" content="Copyright (c) 2009 himm.cn" />
<title>MsgSend</title>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<link rel="stylesheet" type="text/css" href="/css/other.css" media="screen" />
<style type="text/css">
table {
	width:100%;
	border:none;
}
table th {
	background:#ccccff;
}
table th, table td {
	padding:3px;
}
table td span a, table td span a:visited {
	color:#fff;
}
.active1 {
	background:#1a499d;
}
.active2 {
	background:#337fb2;
	color:#fff;
	font-weight:bold;
}
.tabnavhead {
	text-align:right;
	position:relative;
}
.tnc {
	float:left;
	width:90px;
	height:30px;
	margin:0 0 0 5px;
	position:relative;
	bottom:0px;
}
.tnc a {
	width:90px;
	height:26px;
	display:block;
	padding:4px 0 0;
	text-align:center;
	line-height:26px;
	color:#fff;
}
.tnc a:visited {
	color:#fff;
}
.tnc a:hover {
	color:#ff0;
}
.path .right {
	padding:6px 0 0;
}
.redButtonCss {
    font-family: "Tahoma", "宋体";
    font-size: 9pt; color: #0066cc;
    border: 1px #93bee2 solid;
    background-image:url(/Images/redbuttonbg.gif);
    background-color: #fff;
	cursor:pointer;
    font-style: normal ;
}
</style>
		<script language="javascript">
			function dialwinprocess()
			{
				var newdialoguewin = window.showModalDialog("SelectReceiver.aspx",window,"dialogWidth:600px;DialogHeight=490px;status:no");
				if(newdialoguewin!=null){
					if(newdialoguewin.length>5)
					{
						ReceiverTypeArray = newdialoguewin.split("|");
						SendToArray = ReceiverTypeArray[0].split("-");
						MobileSendToArray = ReceiverTypeArray[1].split("-");
						try{
							this.document.MsgSend.txtSendTo.value = SendToArray[0];
							this.document.MsgSend.txtMobileSendTo.value = MobileSendToArray[0];
						}
						catch(e){}
						
						
					}
				}
			}
			
			function SendMsg()
			{
				if(event.keyCode==10)
				{
					document.MsgSend.btnSend.click();
				}
			}
		</script>
</head>
<body onload="javascript:document.all.MsgSend.txtContent.focus()">
<form id="MsgSend" method="post" runat="server">
	
<div class="m">
<p class="path"><a href="/SubModule/UnitiveDocument/">我的桌面</a> >> 短讯管理 >> 发送短信</p>
<div class="con">

			<table class="tl">
				<tr>
					<td style=" width:150px;"><asp:label id="lblLReceiver" runat="server">站内短讯接收人</asp:label></td>
					<td><input class="txt" readOnly type=text size=50 value="<%=SendToRealName%>" name=txtSendTo><a onclick="dialwinprocess()" href="#"><img src="../../DataImages/staff.gif" border="0">选择人员</a></td>
				</tr>
				<tr>
					<td><asp:label id="lblMReceiver" runat="server">站内用户手机短讯</asp:label></td>
					<td><input class="txt" readOnly type=text size=50 value="<%=MobileSendToRN%>" name=txtMobileSendTo><a onclick="dialwinprocess()" href="#"><img src="../../DataImages/staff.gif" border="0">选择人员</a></td>
				</tr>
				<tr>
					<td><asp:label id="lblAdditionalNo" runat="server">附加手机号码</asp:label>:</td>
					<td><input class="txt" onkeypress="var  k=event.keyCode;  if ((k==44) || (k<=57 &amp;&amp; k>=48) )  return true; else return false" 
onpaste="return false" type=text size=62 value="<%=AdditionalNo%>" name=txtAdditionalNo ><asp:label id="lblRemind" runat="server"  >(多个手机号码请用逗号隔开)</asp:label></td>
				</tr>
				<tr>
					<td vAlign="top"><asp:label id="lblContent" runat="server">发送内容</asp:label>:</td>
					<td><asp:textbox onkeypress="SendMsg()" id="txtContent" runat="server" Width="400px" Height="200px" TextMode="MultiLine"></asp:textbox></td>
				</tr>
				<tr>
					<td>&nbsp;</td>
					<td><asp:button id="btnSend" runat="server" Width="100px" Text="发      送" CssClass="buttoncss"></asp:button><asp:button id="btnReturn" runat="server" Width="100px" Text="返      回" CssClass="buttoncss"></asp:button><asp:label id="lblShortCut" runat="server" Font-Size="Small">按Ctrl+回车键 发送消息 </asp:label></td>
				</tr>
			</table>
			<input type=hidden value="<%=SendTo%>" name=hdnTxtSendTo><input type=hidden value="<%=MobileSendTo%>" name=hdnTxtMobileSendTo>
  </div>
</div>
		</form>
</body>
</html>
